//
//  DSRefreshFooterView.h
//  zzzz
//
//  Created by rainday on 15/1/24.
//  Copyright (c) 2015年 rainday. All rights reserved.
//

#import <UIKit/UIKit.h>

typedef enum : NSUInteger {
    DSLoadFooterViewStateNormal=0,
    DSLoadFooterViewStatePulling,
    DSLoadFooterViewStateLoading,
} DSLoadFooterViewState;

@protocol DSLoadFooterViewDelegate;

@interface DSLoadFooterView : UIView{
    DSLoadFooterViewState _state;
    
    UIActivityIndicatorView *_activityView;
    CALayer *_arrowImage;
    UILabel *_statusLabel;
  
}
@property (nonatomic ,assign) id<DSLoadFooterViewDelegate>delegate;

- (void)dsLoadScrollViewDidScroll:(UIScrollView *)scrollView;
- (void)dsLoadScrollViewDidEndDragging:(UIScrollView *)scrollView;
- (void)dsLoadScrollViewDataSourceDidFinishedLoading:(UIScrollView *)scrollView;

@end


@protocol DSLoadFooterViewDelegate <NSObject>

- (BOOL)dsLoadTableViewIsLoading:(DSLoadFooterView *)footerView;
- (void)dsLoadTableViewDidTriggedLoad:(DSLoadFooterView *)footerView;

@end